public object CreateStatus(Project_StatusViewModel model) { ResponseDetails responseDetails = new ResponseDetails(); try { projectStatusService.Create(model); responseDetails = Helper.SetResponseDetails("Status created successfully.", true, null, MessageType.Success); } catch (Exception ex) { responseDetails = Helper.SetResponseDetails("Exception encuntered : " + ex.Message, false, ex, MessageType.Error); } return(responseDetails); }