Ejemplo n.º 1
0
        public async Task <IDictionary <string, object> > Approve(bool isApprove, int id, string user)
        {
            try{
                await _producerRepo.Approve(isApprove, id, user);

                return(Const.Response.ControlerResponse(Const.StatusCode.OK, "Action complete successfully"));
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                return(Const.Response.ControlerResponse(Const.StatusCode.InternalServerError, e.ToString()));
            }
        }