public async Task <ActionResult <Status> > CreateStatus(string statusName) { var createdStatus = await statusService.CreateStatus(statusName); var createdStatusUrl = $"{Request.GetDisplayUrl()}/{createdStatus.Id}"; return(Created(createdStatusUrl, mapper.Map <Status>(createdStatus))); }
public void CreateAStatus(string events, string descripton, string progress) { StatusService _statusService = new StatusService(settings); Status status = new Status(); status.Description = descripton; status.Event = events; status.Progress = progress; _statusService.CreateStatus(status); }