コード例 #1
0
        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)));
        }
コード例 #2
0
        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);
        }