public IResponse <ApiResponse> InsertNewClassInfo([FromBody] Classdetail objClassdetail) { DataSet ds = null; string ResultSet = adminMasterService.InsertNewClassInfoService(objClassdetail); if (ResultSet != null) { ds = adminMasterService.GetClassesService(new SearchModal()); } return(BuildResponse(ds, System.Net.HttpStatusCode.OK)); }
public string AttendenceByClassDetailService(Classdetail classdetail) { if (!string.IsNullOrEmpty(classdetail.ClassDetailUid) && classdetail.CreatedOn != null) { DbParam[] param = new DbParam[] { new DbParam(classdetail.ClassDetailUid, typeof(System.String), "_ClassDetailUid"), new DbParam(userDetail.schooltenentId, typeof(System.String), "_TanentUid"), new DbParam(classdetail.CreatedOn.Month, typeof(System.Int32), "_Month"), new DbParam(classdetail.CreatedOn.Year, typeof(System.Int32), "_Year") }; ResultSet = db.GetDataset("sp_Attendance_DetailByClass", param); } return(JsonConvert.SerializeObject(ResultSet)); }
public string InsertNewClassInfoService(Classdetail objClassdetail) { DbParam[] param = new DbParam[] { new DbParam(objClassdetail.ClassDetailUid, typeof(System.String), "_ClassDetailId"), new DbParam(objClassdetail.Class, typeof(System.String), "_Class"), new DbParam(objClassdetail.TotalSeats, typeof(System.String), "_TotalSeats"), new DbParam(objClassdetail.Section.ToUpper(), typeof(System.String), "_Section"), new DbParam(objClassdetail.GirlSeats, typeof(System.String), "_GirlSeats"), new DbParam(objClassdetail.BoySeats, typeof(System.String), "_BoySeats"), new DbParam(objClassdetail.RoomUid, typeof(System.Int64), "_RoomUid"), new DbParam(userDetail.schooltenentId, typeof(System.String), "_schooltenentId"), new DbParam(userDetail.UserId, typeof(System.String), "_AdminId") }; Result = db.ExecuteNonQuery("sp_ClassDetail_InsUpd", param, true); return(Result); }
public IResponse <ApiResponse> AttendenceByClassDetail([FromBody] Classdetail classdetail) { string result = adminMasterService.AttendenceByClassDetailService(classdetail); return(BuildResponse(result, System.Net.HttpStatusCode.OK)); }