public IHttpActionResult Delete([FromBody] List <int> ids)
        {
            if (ids == null)
            {
                throw new KairosException("Missing parameter: 'ids'");
            }

            string accessType = "";

            ThrowIfUserHasNoRole(accessType);

            using (var izinCutiStatusDeleteHandler = new IzinCutiStatusDeleteHandler(Db, ActiveUser))
            {
                using (var transaction = new TransactionScope())
                {
                    var result = new List <DeleteResult <tblM_IzinCutiStatus> >();

                    foreach (var id in ids)
                    {
                        result.Add(izinCutiStatusDeleteHandler.Execute(id, Base.DeleteMethod.Soft));
                    }
                    transaction.Complete();
                    return(Ok(new SuccessResponse(result, DeleteMessageBuilder.BuildMessage(result))));
                }
            }
        }
        public IHttpActionResult Delete([FromBody] List <int> ids)
        {
            ThrowIfUserHasNoRole(deleteRole);

            if (ids == null)
            {
                throw new KairosException("Missing parameter: 'ids'");
            }

            using (var technologyDeleteHandler = new TechnologyDeleteHandler(Db, ActiveUser))
            {
                using (var transaction = new TransactionScope())
                {
                    var result = new List <DeleteResult <tblM_Technology> >();

                    foreach (var id in ids)
                    {
                        result.Add(technologyDeleteHandler.Execute(id, Base.DeleteMethod.Soft));
                    }
                    transaction.Complete();

                    return(Ok(new SuccessResponse(result, DeleteMessageBuilder.BuildMessage(result))));
                }
            }
        }