public IActionResult AddorEditVenderByAdmin([FromBody] User model)
        {
            IARresponse = Unauthorized();

            User vendor = new User();

            try
            {
                vendor.FirstName = model.FirstName;
                vendor.LastName  = model.LastName;
                vendor.Email     = model.Email;
                vendor.PhoneNo   = model.PhoneNo;
                vendor.RoleID    = 2;
                vendor.UID       = model.UID;
                vendor.Password  = model.Password;
                vendor.Gender    = model.Gender;
                vendor.IsActive  = 1;

                if (objadmindb.AddorEditVenderByAdmin(vendor) == "")
                {
                    IARresponse = Ok(new { res = "Vendor Added / Updated Successfully" });
                }
                else
                {
                    IARresponse = BadRequest(new { res = "Vendor not Added / Updated... try again later!.." + objadmindb.AddorEditVenderByAdmin(vendor) });
                }
            }
            catch (Exception ex)
            {
                IARresponse = BadRequest(new { res = ex.Message });
            }
            return(IARresponse);
        }