public async Task <JsonResult> GetByID(string id) { try { var data = MessagingConversationService.GetByID(Guid.Parse(id)); return(Success(MessagingConversationVM.MToVM(data))); } catch { return(Failed(MessageUtility.ServerError())); } }
public static MessagingConversationVM SetSubData(MessagingConversation data) { var model = MessagingConversationVM.MToVM(data); model.DateTime = DateTimeStorageVM.MToVM(DateTimeStorageService.GetByID(data.DateTimeStorageID)); return(model); }