public ObjectResult <MTask> Add(MTask model) { model.CreateDate = DateTime.Now; model.Id = Guid.NewGuid().ToString(); model.UpdateDate = DateTime.Now; model.MemberId = _userService.User().Id; return(new ObjectResult <MTask>(Success.success, _dal.Create(model.Id, model))); }
public async Task <Tasks> Create(Tasks entity) { return(await _taskDal.Create(entity)); }