Example #1
0
        public async Task <IHttpActionResult> delete([FromBody] BILL_MASTERVM entity)
        {
            var result = await billMasterService.DeleteAsync(entity);

            await LogData("_" + entity.BILL_SETTING_ID + "_" + entity.BILL_ID, entity.BILL_ID.ToString(), entity.BILL_NUMBER.ToString());

            return(Ok(result));
        }
Example #2
0
        public async Task <IHttpActionResult> add([FromBody] BILL_MASTERVM entity)
        {
            var result = await billMasterService.InsertAsync(entity);

            await LogData("_" + entity.BILL_SETTING_ID + "_" + result, result.ToString(), entity.BILL_NUMBER.ToString());

            //if (result != 0)
            //{
            //    return Ok(true);
            //}
            return(Ok(result));
        }