public ActionResult Enable([FromBody] Guid[] ids)
 {
     try
     {
         _customerContactService.Enable(ids);
         return(Ok(new { status = ResponseStatus.success.ToString(), message = "Successfully Enabled !!" }));
     }
     catch (Exception ex)
     {
         return(BadRequestFormatter.BadRequest(this, ex));
     }
 }
Beispiel #2
0
        private bool EnableDisableCustomerContact(bool isEnable, Guid customerContactGuid)
        {
            if (customerContactGuid == Guid.Empty)
            {
                return(false);
            }
            Guid[] guid = new Guid[1];
            guid[0] = customerContactGuid;

            if (isEnable)
            {
                _customerContactService.Enable(guid);
            }
            else
            {
                _customerContactService.Disable(guid);
            }
            return(true);
        }