public ActionResult DeleteConfirmed(long id)
        {
            StatusesPost statuses = _statusesService.GetPost(id);

            statuses.UserName = User.Identity.Name;
            _statusesService.Delete(statuses);
            return(RedirectToAction("Index"));
        }
        public async Task <IActionResult> Delete(Guid statusId, Guid projectId)
        {
            var id = User.Claims.Where(c => c.Type == "Id").Select(c => c.Value).SingleOrDefault();

            if (String.IsNullOrEmpty(id))
            {
                return(Unauthorized());
            }
            Guid actorId = new Guid(id);

            try
            {
                await _statusesService.Delete(projectId, statusId, actorId);

                return(Ok());
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }