public IHttpActionResult DeleteManPower([FromBody] List <MAN_POWERDC> manPowerList) { MAN_POWERBL mpBL = new MAN_POWERBL(); int updatedLockCounter = 0; updatedLockCounter = mpBL.Delete(manPowerList); return(Ok(new { updatedLockCounter })); }
public IHttpActionResult GetManPower(int dailyid) { MAN_POWERBL mpBL = new MAN_POWERBL(); List <MAN_POWERDC> objResult = new List <MAN_POWERDC>(); objResult = mpBL.LoadByDailyID(dailyid); return(Ok(new { objResult })); }
public IHttpActionResult LoadNames(string Column_Name, string Column_Value) { MAN_POWERBL mpBL = new MAN_POWERBL(); List <string> objResult = new List <string>(); if (!String.IsNullOrEmpty(Column_Value)) { Column_Value = Util.Utility.PrepareStringForDB(Column_Value); objResult = mpBL.LoadNames(Column_Name, Column_Value); } return(Ok(new { objResult })); }