public void Add(Schedule ent, User authority) { PermissionHelper.CheckPermissionAndThrow(authority, PermissionHelper.addSchedule); scheduleDal.Add(ent); LogManager.Log(new Log { LogDate = DateTime.Now, LogEvent = Log.EVENT_UPDATE, LogMessage = authority.UserMail + " (" + authority.UserName + ") " + "Çalışma Programı eklendi." }); }
public IResult Add(Schedule entity) { try { _scheduleDal.Add(entity); return(new SuccessResult("İşlem başarılı")); } catch (Exception e) { return(new ErrorResult(e.Message)); } }