Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Marat Pavlov
/
AlexAdapter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
953893e3
authored
Mar 15, 2022
by
AlexNasyr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bd access reached
parent
736dbbcb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
47 deletions
SocialMinistryDataExchange/Controllers/WeatherForecastController.cs
SocialMinistryDataExchange/WeatherForecast.cs
SocialMinistryDataExchange/Controllers/WeatherForecastController.cs
deleted
100644 → 0
View file @
736dbbcb
using
Microsoft.AspNetCore.Mvc
;
using
Microsoft.Extensions.Logging
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
namespace
SocialMinistryDataExchange.Controllers
{
[
ApiController
]
[
Route
(
"[controller]"
)]
public
class
WeatherForecastController
:
ControllerBase
{
private
static
readonly
string
[]
Summaries
=
new
[]
{
"Freezing"
,
"Bracing"
,
"Chilly"
,
"Cool"
,
"Mild"
,
"Warm"
,
"Balmy"
,
"Hot"
,
"Sweltering"
,
"Scorching"
};
private
readonly
ILogger
<
WeatherForecastController
>
_logger
;
public
WeatherForecastController
(
ILogger
<
WeatherForecastController
>
logger
)
{
_logger
=
logger
;
}
[
HttpGet
]
public
IEnumerable
<
WeatherForecast
>
Get
()
{
var
rng
=
new
Random
();
return
Enumerable
.
Range
(
1
,
5
).
Select
(
index
=>
new
WeatherForecast
{
Date
=
DateTime
.
Now
.
AddDays
(
index
),
TemperatureC
=
rng
.
Next
(-
20
,
55
),
Summary
=
Summaries
[
rng
.
Next
(
Summaries
.
Length
)]
})
.
ToArray
();
}
}
}
SocialMinistryDataExchange/WeatherForecast.cs
deleted
100644 → 0
View file @
736dbbcb
using
System
;
namespace
SocialMinistryDataExchange
{
public
class
WeatherForecast
{
public
DateTime
Date
{
get
;
set
;
}
public
int
TemperatureC
{
get
;
set
;
}
public
int
TemperatureF
=>
32
+
(
int
)(
TemperatureC
/
0.5556
);
public
string
Summary
{
get
;
set
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment