Ejemplo n.º 1
0
        public async Task <ActionResult> DeleteGroup(int id)
        {
            try
            {
                var status = await _ExpenseRepository.DeleteBillAsync(id);

                if (!status)
                {
                    return(BadRequest(new ApiGeneralResponse {
                        Status = false
                    }));
                }
                return(Ok(new ApiGeneralResponse {
                    Status = true, id = id
                }));
            }
            catch (Exception exp)
            {
                _Logger.LogError(exp.Message);
                return(BadRequest(new ApiGeneralResponse {
                    Status = false
                }));
            }
        }