public Result SaveMeetingRoom(DAL.db.MeetingRoom meetingRoom) { _mrFactory = new MeetingRoomFactory(); try { if (meetingRoom.MeetingRoomID > 0) { _mrFactory.Edit(meetingRoom); _result = _mrFactory.Save(); if (_result.isSucess) { _result.message = _result.UpdateSuccessfull(tableName); } } else { _mrFactory.Add(meetingRoom); _result = _mrFactory.Save(); if (_result.isSucess) { _result.message = _result.SaveSuccessfull(tableName); } } } catch (Exception e) { _result.isSucess = false; _result.message = e.Message; } return(_result); }
public JsonResult SaveMeetingRoom(DAL.db.MeetingRoom meetingRoom) { mrFactory = new MeetingRoomFactorys(); result = mrFactory.SaveMeetingRoom(meetingRoom); return(Json(result)); }