Skip to content

lv303-net/iHoReD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 

Repository files navigation

iHoReD

Contents #

HoReD # =

ApiDescriptionExtensions # =

Namespace

HoReD.Areas.HelpPage

GetFriendlyId(description) method # =

Summary

Generates an URI-friendly ID for the ApiDescription. E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}"

Returns

The ID as a string.

Parameters
Name Type Description
description System.Web.Http.Description.ApiDescription The ApiDescription.

DoctorController # =

Namespace

HoReD.Controllers

Summary

Controller that represents information about Doctors

GetDoctorEvents() method # =

Summary

Gets information about Doctor events

Returns

List of instances of the class Event

Parameters

This method has no parameters.

Example

http://localhost:*****/DoctorEvents/{doctorId}/{dateStart}/{dateFinish}

GetDoctorEventsForDoctor(doctorId,dateStart,dateFinish) method # =

Summary

Similar to GetDoctorEvents, but also returns id and name of user, that has session in relevant event

Returns
Parameters
Name Type Description
doctorId System.Int32
dateStart System.DateTime
dateFinish System.DateTime

GetDoctorGeneralSalaryStatistics(doctorId,dateStart,dateFinish) method # =

Summary

Get doctor's general salary statistics in specific range of time

Returns

Instance of the class SalaryStatistics

Parameters
Name Type Description
doctorId System.Int32
dateStart System.DateTime
dateFinish System.DateTime
Example

http://localhost:*****/DoctorGeneralSalaryStatistics/{doctorId}/{dateStart}/{dateFinish}

GetDoctors() method # =

Summary

Gets full information about Doctors in database

Returns

List of instances of the class DoctorInfo

Parameters

This method has no parameters.

Example

http://localhost:*****/api/Doctor/

GetDoctorSalaryStatistics(doctorId,dateStart,dateFinish) method # =

Summary

Get doctor's salary statistics in specific range of time for each day

Returns

List of instances of the class SalaryStatistics

Parameters
Name Type Description
doctorId System.Int32
dateStart System.DateTime
dateFinish System.DateTime
Example

http://localhost:*****/DoctorSalaryStatistics/{doctorId}/{dateStart}/{dateFinish}

GetDoctorsByProfession(professionId) method # =

Summary

Returns all doctors' ID, name and surname with current profession ID

Returns
Parameters
Name Type Description
professionId System.Int32

DoctorScheduleController # =

Namespace

HoReD.Controllers

Summary

Controller that represents information about doctors schedule

GetDoctorSchedule() method # =

Summary

Gets doctor's schedule from database

Returns

List of instances of the worcing hour of Doctor

Parameters

This method has no parameters.

Example

http://localhost:*****/GetDoctorSchedule/{doctorId}

HelpController # =

Namespace

HoReD.Areas.HelpPage.Controllers

Summary

The controller that will handle requests for the help page.

HelpPageApiModel # =

Namespace

HoReD.Areas.HelpPage.Models

Summary

The model that represents an API displayed on the help page.

#ctor() constructor # =

Summary

Initializes a new instance of the HelpPageApiModel class.

Parameters

This constructor has no parameters.

ApiDescription property # =

Summary

Gets or sets the ApiDescription that describes the API.

ErrorMessages property # =

Summary

Gets the error messages associated with this model.

RequestBodyParameters property # =

Summary

Gets the request body parameter descriptions.

RequestDocumentation property # =

Summary

Gets or sets the documentation for the request.

RequestModelDescription property # =

Summary

Gets or sets the ModelDescription that describes the request body.

ResourceDescription property # =

Summary

Gets or sets the ModelDescription that describes the resource.

ResourceProperties property # =

Summary

Gets the resource property descriptions.

SampleRequests property # =

Summary

Gets the sample requests associated with the API.

SampleResponses property # =

Summary

Gets the sample responses associated with the API.

UriParameters property # =

Summary

Gets or sets the ParameterDescription collection that describes the URI parameters for the API.

HelpPageConfig # =

Namespace

HoReD.Areas.HelpPage

Summary

Use this class to customize the Help Page. For example you can set a custom IDocumentationProvider to supply the documentation or you can provide the samples for the requests/responses.

HelpPageConfigurationExtensions # =

Namespace

HoReD.Areas.HelpPage

GetHelpPageApiModel(config,apiDescriptionId) method # =

Summary

Gets the model that represents an API displayed on the help page. The model is initialized on the first call and cached for subsequent calls.

Returns

An HelpPageApiModel

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
apiDescriptionId System.String The ApiDescription ID.

GetHelpPageSampleGenerator(config) method # =

Summary

Gets the help page sample generator.

Returns

The help page sample generator.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.

GetModelDescriptionGenerator(config) method # =

Summary

Gets the model description generator.

Returns

The ModelDescriptionGenerator

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The configuration.

SetActualRequestType(config,type,controllerName,actionName) method # =

Summary

Specifies the actual type of ObjectContent`1 passed to the HttpRequestMessage in an action. The help page will use this information to produce more accurate request samples.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
type System.Type The type.
controllerName System.String Name of the controller.
actionName System.String Name of the action.

SetActualRequestType(config,type,controllerName,actionName,parameterNames) method # =

Summary

Specifies the actual type of ObjectContent`1 passed to the HttpRequestMessage in an action. The help page will use this information to produce more accurate request samples.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
type System.Type The type.
controllerName System.String Name of the controller.
actionName System.String Name of the action.
parameterNames System.String[] The parameter names.

SetActualResponseType(config,type,controllerName,actionName) method # =

Summary

Specifies the actual type of ObjectContent`1 returned as part of the HttpRequestMessage in an action. The help page will use this information to produce more accurate response samples.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
type System.Type The type.
controllerName System.String Name of the controller.
actionName System.String Name of the action.

SetActualResponseType(config,type,controllerName,actionName,parameterNames) method # =

Summary

Specifies the actual type of ObjectContent`1 returned as part of the HttpRequestMessage in an action. The help page will use this information to produce more accurate response samples.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
type System.Type The type.
controllerName System.String Name of the controller.
actionName System.String Name of the action.
parameterNames System.String[] The parameter names.

SetDocumentationProvider(config,documentationProvider) method # =

Summary

Sets the documentation provider for help page.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
documentationProvider System.Web.Http.Description.IDocumentationProvider The documentation provider.

SetHelpPageSampleGenerator(config,sampleGenerator) method # =

Summary

Sets the help page sample generator.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
sampleGenerator HoReD.Areas.HelpPage.HelpPageSampleGenerator The help page sample generator.

SetSampleForMediaType(config,sample,mediaType) method # =

Summary

Sets the sample directly for all actions with the specified media type.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
sample System.Object The sample.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.

SetSampleForType(config,sample,mediaType,type) method # =

Summary

Sets the sample directly for all actions with the specified type and media type.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
sample System.Object The sample.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.
type System.Type The parameter type or return type of an action.

SetSampleObjects(config,sampleObjects) method # =

Summary

Sets the objects that will be used by the formatters to produce sample requests/responses.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
sampleObjects System.Collections.Generic.IDictionary{System.Type,System.Object} The sample objects.

SetSampleRequest(config,sample,mediaType,controllerName,actionName) method # =

Summary

Sets the sample request directly for the specified media type and action.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
sample System.Object The sample request.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.
controllerName System.String Name of the controller.
actionName System.String Name of the action.

SetSampleRequest(config,sample,mediaType,controllerName,actionName,parameterNames) method # =

Summary

Sets the sample request directly for the specified media type and action with parameters.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
sample System.Object The sample request.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.
controllerName System.String Name of the controller.
actionName System.String Name of the action.
parameterNames System.String[] The parameter names.

SetSampleResponse(config,sample,mediaType,controllerName,actionName) method # =

Summary

Sets the sample request directly for the specified media type of the action.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
sample System.Object The sample response.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.
controllerName System.String Name of the controller.
actionName System.String Name of the action.

SetSampleResponse(config,sample,mediaType,controllerName,actionName,parameterNames) method # =

Summary

Sets the sample response directly for the specified media type of the action with specific parameters.

Parameters
Name Type Description
config System.Web.Http.HttpConfiguration The HttpConfiguration.
sample System.Object The sample response.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.
controllerName System.String Name of the controller.
actionName System.String Name of the action.
parameterNames System.String[] The parameter names.

HelpPageSampleGenerator # =

Namespace

HoReD.Areas.HelpPage

Summary

This class will generate the samples for the help page.

#ctor() constructor # =

Summary

Initializes a new instance of the HelpPageSampleGenerator class.

Parameters

This constructor has no parameters.

ActionSamples property # =

Summary

Gets the objects that are used directly as samples for certain actions.

ActualHttpMessageTypes property # =

Summary

Gets CLR types that are used as the content of HttpRequestMessage or HttpResponseMessage.

SampleObjectFactories property # =

Summary

Gets factories for the objects that the supported formatters will serialize as samples. Processed in order, stopping when the factory successfully returns a non- object.

Remarks

Collection includes just GenerateObject initially. Use

SampleObjectFactories.Insert(0, func)

to provide an override and

SampleObjectFactories.Add(func)

to provide a fallback.

SampleObjects property # =

Summary

Gets the objects that are serialized as samples by the supported formatters.

GetActionSample(controllerName,actionName,parameterNames,type,formatter,mediaType,sampleDirection) method # =

Summary

Search for samples that are provided directly through ActionSamples.

Returns

The sample that matches the parameters.

Parameters
Name Type Description
controllerName System.String Name of the controller.
actionName System.String Name of the action.
parameterNames System.Collections.Generic.IEnumerable{System.String} The parameter names.
type System.Type The CLR type.
formatter System.Net.Http.Formatting.MediaTypeFormatter The formatter.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.
sampleDirection HoReD.Areas.HelpPage.SampleDirection The value indicating whether the sample is for a request or for a response.

GetSample(api,sampleDirection) method # =

Summary

Gets the request or response body samples.

Returns

The samples keyed by media type.

Parameters
Name Type Description
api System.Web.Http.Description.ApiDescription The ApiDescription.
sampleDirection HoReD.Areas.HelpPage.SampleDirection The value indicating whether the sample is for a request or for a response.

GetSampleObject(type) method # =

Summary

Gets the sample object that will be serialized by the formatters. First, it will look at the SampleObjects. If no sample object is found, it will try to create one using DefaultSampleObjectFactory (which wraps an ObjectGenerator) and other factories in SampleObjectFactories.

Returns

The sample object.

Parameters
Name Type Description
type System.Type The type.

GetSampleRequests(api) method # =

Summary

Gets the request body samples for a given ApiDescription.

Returns

The samples keyed by media type.

Parameters
Name Type Description
api System.Web.Http.Description.ApiDescription The ApiDescription.

GetSampleResponses(api) method # =

Summary

Gets the response body samples for a given ApiDescription.

Returns

The samples keyed by media type.

Parameters
Name Type Description
api System.Web.Http.Description.ApiDescription The ApiDescription.

ResolveHttpRequestMessageType(api) method # =

Summary

Resolves the actual type of ObjectContent`1 passed to the HttpRequestMessage in an action.

Returns

The type.

Parameters
Name Type Description
api System.Web.Http.Description.ApiDescription The ApiDescription.

ResolveType(api,controllerName,actionName,parameterNames,sampleDirection,formatters) method # =

Summary

Resolves the type of the action parameter or return value when HttpRequestMessage or HttpResponseMessage is used.

Parameters
Name Type Description
api System.Web.Http.Description.ApiDescription The ApiDescription.
controllerName System.String Name of the controller.
actionName System.String Name of the action.
parameterNames System.Collections.Generic.IEnumerable{System.String} The parameter names.
sampleDirection HoReD.Areas.HelpPage.SampleDirection The value indicating whether the sample is for a request or a response.
formatters System.Collections.ObjectModel.Collection{System.Net.Http.Formatting.MediaTypeFormatter}@ The formatters.

WriteSampleObjectUsingFormatter(formatter,value,type,mediaType) method # =

Summary

Writes the sample object using formatter.

Returns
Parameters
Name Type Description
formatter System.Net.Http.Formatting.MediaTypeFormatter The formatter.
value System.Object The value.
type System.Type The type.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue Type of the media.

HelpPageSampleKey # =

Namespace

HoReD.Areas.HelpPage

Summary

This is used to identify the place where the sample should be applied.

#ctor(mediaType) constructor # =

Summary

Creates a new HelpPageSampleKey based on media type.

Parameters
Name Type Description
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.

#ctor(mediaType,type) constructor # =

Summary

Creates a new HelpPageSampleKey based on media type and CLR type.

Parameters
Name Type Description
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.
type System.Type The CLR type.

#ctor(sampleDirection,controllerName,actionName,parameterNames) constructor # =

Summary

Creates a new HelpPageSampleKey based on SampleDirection, controller name, action name and parameter names.

Parameters
Name Type Description
sampleDirection HoReD.Areas.HelpPage.SampleDirection The SampleDirection.
controllerName System.String Name of the controller.
actionName System.String Name of the action.
parameterNames System.Collections.Generic.IEnumerable{System.String} The parameter names.

#ctor(mediaType,sampleDirection,controllerName,actionName,parameterNames) constructor # =

Summary

Creates a new HelpPageSampleKey based on media type, SampleDirection, controller name, action name and parameter names.

Parameters
Name Type Description
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The media type.
sampleDirection HoReD.Areas.HelpPage.SampleDirection The SampleDirection.
controllerName System.String Name of the controller.
actionName System.String Name of the action.
parameterNames System.Collections.Generic.IEnumerable{System.String} The parameter names.

ActionName property # =

Summary

Gets the name of the action.

ControllerName property # =

Summary

Gets the name of the controller.

MediaType property # =

Summary

Gets the media type.

ParameterNames property # =

Summary

Gets the parameter names.

SampleDirection property # =

Summary

Gets the SampleDirection.

ImageSample # =

Namespace

HoReD.Areas.HelpPage

Summary

This represents an image sample on the help page. There's a display template named ImageSample associated with this class.

#ctor(src) constructor # =

Summary

Initializes a new instance of the ImageSample class.

Parameters
Name Type Description
src System.String The URL of an image.

InvalidSample # =

Namespace

HoReD.Areas.HelpPage

Summary

This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class.

LoginController # =

Namespace

HoReD.Controllers

Summary

Manages the logining process of users

LoginUser(model) method # =

Summary

Checks whether entered user data is valid

Returns
Parameters
Name Type Description
model HoReD.Models.LoginUserBindingModel

ResetPassword(model) method # =

Summary

Resets password after validation link, email address and new password

Parameters
Name Type Description
model HoReD.Models.ResetPasswordBindingModel Email, new password and link for resetting from email
Example

http://localhost:*****/ResetPassword

SendEmailForResettingPassword(model) method # =

Summary

Sends email with uniquely generated link that have expiration time to provide ability reset password

Parameters
Name Type Description
model HoReD.Models.LoginUserBindingModel Email address where send link to
Example

http://localhost:*****/SendEmailForResettingPassword

MedicalCardController # =

Namespace

HoReD.Controllers

Summary

Controller that represents information about patient medical card

GetMedicalCardByPatientId(userId,pageNumber,elementOnPageCount,columnNumber) method # =

Summary

Method that get user id and return his medical card

Returns

Array of records

Parameters
Name Type Description
userId System.Int32 ID of needed user
pageNumber System.Int32 Index of page
elementOnPageCount System.Int32 Total amount of records on one page
columnNumber System.Int32 Amount of column on page

GetPageCount(userId,elementOnPageCount) method # =

Summary

Returns Total amount of needed pages with {elementOnPageCount} to display all medical card data

Returns

Total page amount

Parameters
Name Type Description
userId System.Int32 ID of needed user
elementOnPageCount System.Int32 Amount of records displayed on one page

MembershipController # =

Namespace

HoReD.Controllers

Authenticate(loginInfo) method # =

Summary

Verify user data

Returns

If data correct - 200 status code which contain access token, else returns 401 status code

Parameters
Name Type Description
loginInfo HoReD.Models.LoginUserBindingModel Gets user email and password

ModelDescription # =

Namespace

HoReD.Areas.HelpPage.ModelDescriptions

Summary

Describes a type model.

ModelDescriptionGenerator # =

Namespace

HoReD.Areas.HelpPage.ModelDescriptions

Summary

Generates model descriptions for given types.

ModelNameAttribute # =

Namespace

HoReD.Areas.HelpPage.ModelDescriptions

Summary

Use this attribute to change the name of the ModelDescription generated for a type.

ObjectGenerator # =

Namespace

HoReD.Areas.HelpPage

Summary

This class will create an object of a given type and populate it with sample data.

GenerateObject(type) method # =

Summary

Generates an object for a given type. The type needs to be public, have a public default constructor and settable public properties/fields. Currently it supports the following types: Simple types: Int32, String, Enum, DateTime, Uri, etc. Complex types: POCO types. Nullables: Nullable`1. Arrays: arrays of simple types or complex types. Key value pairs: KeyValuePair`2 Tuples: Tuple`1, Tuple`2, etc Dictionaries: IDictionary`2 or anything deriving from IDictionary`2. Collections: IList`1, IEnumerable`1, ICollection`1, IList, IEnumerable, ICollection or anything deriving from ICollection`1 or IList. Queryables: IQueryable, IQueryable`1.

Returns

An object of the given type.

Parameters
Name Type Description
type System.Type The type.

PatientDataController # =

Namespace

HoReD.Controllers

Summary

Controller that represents information about patient medical card

AddMedicalRecord(model) method # =

Summary

Adds description and treatment for visit

Returns

Integer: 1 - if record added

Parameters
Name Type Description
model HoReD.Models.MedicalRecordBindingModel Id patient, starttime of visit, description and treatment

AddPatientAllergy(model) method # =

Summary

Adds allergies for patient

Returns

Integer: 1 - if allergy added

Parameters
Name Type Description
model HoReD.Models.MedicalRecordBindingModel Id patient, starttime of visit and idallergy

AddPatientDisease(model) method # =

Summary

Adds disease for patient

Returns

Integer: 1 - if disease added

Parameters
Name Type Description
model HoReD.Models.MedicalRecordBindingModel Id patient, starttime of visit and iddisease

ClosePatientAllergy(model) method # =

Summary

Closes allergy for patient

Returns

Integer: 1 - if allergy closed

Parameters
Name Type Description
model HoReD.Models.MedicalRecordBindingModel Id patient, starttime of visit and iddallergy

ClosePatientDisease(model) method # =

Summary

Closes disease for patient

Returns

Integer: 1 - if disease closed

Parameters
Name Type Description
model HoReD.Models.MedicalRecordBindingModel Id patient, starttime of visit and iddisease

GetActiveAllergyInfo(idPatient,idAllergy) method # =

Summary

Get description, treatment, doctor and date for active allergy

Returns
Parameters
Name Type Description
idPatient System.Int32 ID of needed user
idAllergy System.Int32 ID of needed allergy

GetCategories() method # =

Summary

Returns diseases categories

Returns

List of diseases categories id, name

Parameters

This method has no parameters.

GetClosedAllergiesInfo(idPatient) method # =

Summary

Get description, treatment, doctor and date for the opening and closing allergy visits

Returns
Parameters
Name Type Description
idPatient System.Int32 ID of needed user

GetClosedDiseaseInfo(idPatient) method # =

Summary

Get description, treatment, doctor and date for diagnose

Returns
Parameters
Name Type Description
idPatient System.Int32 ID of needed user

GetDiagnoseInfo(idPatient,idDisease) method # =

Summary

Get description, treatment, doctor and date for diagnose

Returns
Parameters
Name Type Description
idPatient System.Int32 ID of needed user
idDisease System.Int32 ID of needed subdisease

GetDiseases(id) method # =

Summary

Returns diseases diseases, that current subcategory has

Returns

List of diseases id, code, name

Parameters
Name Type Description
id System.Int32 ID of needed subcategory

GetPatientActiveAllergies(id) method # =

Summary

Returns active allergies, that current user has

Returns

List of user's allergies names, id and visit

Parameters
Name Type Description
id System.Int32 ID of needed user

GetPatientActiveDiseases(id) method # =

Summary

Returns active diseases, that current user has

Returns

List of user's diseases names, id

Parameters
Name Type Description
id System.Int32 ID of needed user

GetPatientDataByPatientId(id) method # =

Summary

Method that get user id and return his medical card

Returns

Patient Data

Parameters
Name Type Description
id System.Int32 ID of needed user

GetPatientDiseases(idPatient,idDisease) method # =

Summary

Returns all subdiseases, that current user don't has

Returns

List of user's nonactive subdiseases

Parameters
Name Type Description
idPatient System.Int32 ID of needed user
idDisease System.Int32 ID of needed subdisease

GetPatientNoNActiveAllergies(id) method # =

Summary

Returns active allergies, that current user don't has

Returns

List of user's allergies names, id

Parameters
Name Type Description
id System.Int32 ID of needed user

GetSubCategories(id) method # =

Summary

Returns diseases subcategories, that current category has

Returns

List of diseases subcategories, id, firstcode, lastcode, name

Parameters
Name Type Description
id System.Int32 ID of needed category

RegistrationController # =

Namespace

HoReD.Controllers

Summary

Adds information to database during registration and manages users' activation

ActivateUser(IdUser) method # =

Summary

Activates user, that visited own activation link

Returns

Integer: 0 - if user already activated, 1 - if activation succeeded, -1 - if such user doesn't exist in database

Parameters
Name Type Description
IdUser System.String ID of the needed user

CreateNewUser(model) method # =

Summary

Adds to system information about new user

Returns

Status code

Parameters
Name Type Description
model HoReD.Models.RegistrationBindingModel Information about user

RuleController # =

Namespace

HoReD.Controllers

AddOrUpdate(model) method # =

Summary

Adds new rule into database, or update existing based on ID

Parameters
Name Type Description
model HoReD.Models.RuleBindingModel Rule

AssignDoctorToRule(model) method # =

Summary

Assigns doctor with ID {IdDoctor} to rule with ID {IdRule}

Parameters
Name Type Description
model HoReD.Models.RulesetBindingModel Stores IDs of doctor and rule

Delete(IdRule) method # =

Summary

Deletes rule with current ID

Parameters
Name Type Description
IdRule System.Int32 ID of rule, that should be deleted

Delete(model) method # =

Summary

Dismisses doctor with ID {IdDoctor} from rule with ID {IdRule}

Parameters
Name Type Description
model HoReD.Models.RulesetBindingModel Stores IDs of doctor and rule

GetDoctorsBYIdRule(IdRule,hasRule) method # =

Summary

Returns all doctors that has or has not rule with ID {IdRule} based on {hasRule}

Returns
Parameters
Name Type Description
IdRule System.Int32 ID of needed rule
hasRule System.Boolean Defines to return doctors that has or has not

SalaryController # =

Namespace

HoReD.Controllers

Summary

Controller manages salary management

#ctor() constructor # =

Summary

Constructor for SalaryController

Parameters

This constructor has no parameters.

AddNewCoeff(model) method # =

Summary

Add some coeff defined by the end-user by assigned doctorId and startDate

Returns

Status code: 0 - something went wrong, 1 - successful

Parameters
Name Type Description
model HoReD.Models.SalaryCoeffBindingModel Binding model that contains doctorId, coeff and startDate
Example

http://localhost:*****/api/Salary/Coefficient/add

AddNewRate(model) method # =

Summary

Add some rate defined by the end-user by assigned professionId and startDate

Returns

Status code: 0 - something went wrong, 1 - successful

Parameters
Name Type Description
model HoReD.Models.SalaryRateBindingModel Binding model that contains professionId, rate and startDate
Example

http://localhost:*****/api/Salary/Rate/add

DeleteCoeff(doctorId,startDate) method # =

Summary

Delete some rate by assigned doctorId and startDate

Returns

Status code: 0 - something went wrong, 1 - successful

Parameters
Name Type Description
doctorId System.Int32 Doctor id
startDate System.String The start date of rate
Example

http://localhost:*****/api/Salary/Rate/delet/{doctorId}/{startDate}

DeleteRate(professionId,startDate) method # =

Summary

Delete some rate by assigned professionId and startDate

Returns

Status code: 0 - something went wrong, 1 - successful

Parameters
Name Type Description
professionId System.Int32 Profession id
startDate System.String The start date of rate
Example

http://localhost:*****/api/Salary/Rate/delete/{professionId}/{startDate}

EditNewCoeff(model) method # =

Summary

Edit some coeff defined by the end-user by assigned doctorId and startDate

Returns

Status code: 0 - something went wrong, 1 - successful

Parameters
Name Type Description
model HoReD.Models.SalaryCoeffBindingModel Binding model that contains doctorId, rate and startDate
Example

http://localhost:*****/api/Salary/Coefficient/edit

EditNewRate(model) method # =

Summary

Edit some rate defined by the end-user by assigned professionId and startDate

Returns

Status code: 0 - something went wrong, 1 - successful

Parameters
Name Type Description
model HoReD.Models.SalaryRateBindingModel Binding model that contains professionId, rate and startDate
Example

http://localhost:*****/api/Salary/Rate/edit

GetCoefficientsForDoctor(doctorId) method # =

Summary

Gets all coefficients for some doctor by its id

Returns

List of instances of the class SalaryRate (Rate, StartDate, State)

Parameters
Name Type Description
doctorId System.Int32 Doctor id
Example

http://localhost:*****/api/Salary/Rate/get/{doctorId}

GetRatesForProfession(professionId) method # =

Summary

Gets all rates for some profession by its id

Returns

List of instances of the class SalaryRate (Rate, StartDate, State)

Parameters
Name Type Description
professionId System.Int32 Profession id
Example

http://localhost:*****/api/Salary/Rate/get/{professionId}

SampleDirection # =

Namespace

HoReD.Areas.HelpPage

Summary

Indicates whether the sample is used for request or response

ScheduleController # =

Namespace

HoReD.Controllers

Summary

Controller manages schedules

InsertNewScheduleRecord(model) method # =

Summary

Inserts new schedule record into database

Returns

Status code

Parameters
Name Type Description
model HoReD.Models.ScheduleBindingModel Stores data about schedule(start time, end time and IDs of doctor and patient

SimpleInjectorWebApiInitializer # =

Namespace

HoReD.App_Start

Initialize() method # =

Summary

Initialize the container and register it as Web API Dependency Resolver.

Parameters

This method has no parameters.

TextSample # =

Namespace

HoReD.Areas.HelpPage

Summary

This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.

UserController # =

Namespace

HoReD.Controllers

Summary

Manages general User data

ChangeRole(currentUser,userId,role,idProffesion) method # =

Summary

Change of user role(from doctor to admin etc)

Returns

Update role for one user

Parameters
Name Type Description
currentUser System.Int32 current User Id for logging info
userId System.Int32 UserId
role System.Int32 Role
idProffesion System.Int32 idProffesion(unnecessary param)

EditUserInfo(model) method # =

Summary

Edits record in database with general info

Returns
Parameters
Name Type Description
model HoReD.Models.UserInfoBindingModel

FilterAllUsers(numberPage,countInPage,isAdmin,isDoctor,firstOrlastname) method # =

Summary

Get filtered info about users first and lastname,isAdmin,profession

Returns

List of filtered info about users-first and lastname,isAdmin,profession

Parameters
Name Type Description
numberPage System.Int32 Number of page
countInPage System.Int32 Users count in page
isAdmin System.Boolean isAdmin
isDoctor System.Boolean isDoctor
firstOrlastname System.String firstOrlastname(unnecessary param)

GetInfoAboutAllUsers(numberPage,countInPage) method # =

Summary

Gets info about role-doctor,user or admin

Returns

List of users-first and lastname,isAdmin,profession

Parameters
Name Type Description
numberPage System.Int32 Number of page
countInPage System.Int32 Users count in page

GetUserAvailableRole(idUser) method # =

Summary

Available role for user

Returns

List idRole,rolename

Parameters
Name Type Description
idUser System.Int32 idUser

GetUserInfoById(UserInfoId) method # =

Summary

Gets all general info about user

Returns

UserInfo

Parameters
Name Type Description
UserInfoId System.Int32 ID of needed user

GetUserRole(idUser) method # =

Summary

Current role of user

Returns

List firsname,lastname,rolename

Parameters
Name Type Description
idUser System.Int32 idUser

ListFirstLastname(text) method # =

Summary

List first and lastname of users for filtering

Returns

List first and lastnameof users

Parameters
Name Type Description
text System.String text for searching

NumbersOfPage(countInPage) method # =

Summary

Count of pages for different quantity of users on the page

Returns

Count of pages(for pagination)

Parameters
Name Type Description
countInPage System.Int32 Users count in page

NumbersOfPageFiltered(countInPage,isAdmin,isDoctor,firstOrlastname) method # =

Summary

Count of pages for different quantity of users on the page

Returns

Count of pages(for pagination)

Parameters
Name Type Description
countInPage System.Int32 User's count in page
isAdmin System.Boolean isAdmin
isDoctor System.Boolean isDoctor
firstOrlastname System.String firstOrlastname(unnecessary param)

XmlDocumentationProvider # =

Namespace

HoReD.Areas.HelpPage

Summary

A custom IDocumentationProvider that reads the API documentation from an XML documentation file.

#ctor(documentPath) constructor # =

Summary

Initializes a new instance of the XmlDocumentationProvider class.

Parameters
Name Type Description
documentPath System.String The physical path to XML document.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8