public async Task <IHttpActionResult> AddSales(SalesModel sales) { if (sales == null) { return(BadRequest("Please provide valid inputs!")); } CommonResponse validatedResponse = await AuthService.ValidateUserAndToken(); if (!validatedResponse.IsError) { if (await SalesService.AddSales(sales)) { return(Ok("Transaction Successfully Entered!")); } else { return(BadRequest("Transaction Cannot be Processed!")); } } else { return(Unauthorized()); } }//end of add